<?php if ($this->pageCount > 1) { ?>
	<div id="paging">
        <!-- First page link -->
        <?php if (isset($this->previous)): ?>
              <a href="javascript:;" onclick="gotoPage(<?=$this->first?>);"><?=$this->translate('нач.')?></a> 
        <?php else: ?>
                <span class="disabled"><?=$this->translate('нач.')?></span> 
        <?php endif; ?>
    
        <!-- Previous page link -->
    
        <?php if (isset($this->previous)): ?>
              <a href="javascript:;" onclick="gotoPage(<?=$this->previous?>);">&lt;</a> 
        <?php else: ?>
            <span class="disabled">&lt;</span>
        <?php endif; ?>
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
                <a href="javascript:;" onclick="gotoPage(<?=$page?>);"><?=$page?></a><?=($page != $this->last ? ' | ' : '')?>
            <?php else: ?>
                <b><?=$page?></b><?=($page != $this->last ? ' | ' : '')?>
            <?php endif; ?>
        <?php endforeach; ?>
        <!-- Next page link -->
        <?php if (isset($this->next)): ?>
              <a href="javascript:;" onclick="gotoPage(<?=$this->next?>);">&gt;</a> 
        <?php else: ?>
            <span class="disabled">&gt;</span>
        <?php endif; ?>
        <!-- Last page link -->
        <?php if (isset($this->next)): ?>
              <a href="javascript:;" onclick="gotoPage(<?=$this->last?>);"><?=$this->translate('кон.')?></a>
        <?php else: ?>
            <span class="disabled"><?=$this->translate('кон.')?></span>
        <?php endif; ?>
 </div>
 <?php } ?>